<xs:schema xmlns:b="http://schemas.microsoft.com/BizTalk/2003" targetNamespace="http://HealthcareClaimSchemas.BAM.BAM_Activity_Schema" xmlns:xs="http://www.w3.org/2001/XMLSchema">
  <xs:element name="Root">
    <xs:complexType>
      <xs:sequence>
        <xs:element name="CLM_837I">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="ReceiveClaim" minOccurs="0" type="xs:dateTime" />
              <xs:element name="Claim_CLM02_TotalClaimCharge" minOccurs="0" type="xs:float" />
              <xs:element name="Claim_CLM01_PatientAccountNumber" minOccurs="0" type="xs:string" />
              <xs:element name="Subscriber_NM109_SubscriberPrimaryIdentifier" minOccurs="0" type="xs:string" />
              <xs:element name="BTSMessageID" minOccurs="0" type="xs:string" />
              <xs:element name="Payer_NM109_PayerIdentifier" minOccurs="0" type="xs:string" />
              <xs:element name="CommunicationMethod" minOccurs="0" type="xs:string" />
              <xs:element name="IsDependent" minOccurs="0" type="xs:string" />
              <xs:element name="Patient_PAT01_IndividualRelationshipCode" minOccurs="0" type="xs:string" />
              <xs:element name="RoutedTo" minOccurs="0" type="xs:string" />
              <xs:element name="BTSInterchangeID" minOccurs="0" type="xs:string" />
              <xs:element name="Subscriber_NM104_SubscriberFirstName" minOccurs="0" type="xs:string" />
              <xs:element name="Subscriber_NM105_SubscriberLastName" minOccurs="0" type="xs:string" />
            </xs:sequence>
          </xs:complexType>
        </xs:element>
        <xs:element name="CLM_835">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="ReceiveClaimPayment" minOccurs="0" type="xs:dateTime" />
              <xs:element name="ClaimPayment_CLP01_PatientAccountNumber" minOccurs="0" type="xs:string" />
              <xs:element name="Subscriber_NM109_SubscriberID" minOccurs="0" type="xs:string" />
              <xs:element name="BTSMessageID" minOccurs="0" type="xs:string" />
              <xs:element name="ProviderSummary_TS309_TotalActualPaymentAmount" minOccurs="0" type="xs:float" />
              <xs:element name="Payer_NM104_PayerIdentifier" minOccurs="0" type="xs:string" />
              <xs:element name="ProviderSummary_TS306_TotalCoveredChargeAmount" minOccurs="0" type="xs:float" />
              <xs:element name="ProviderSummary_TS307_TotalNonCoveredChargeAmount" minOccurs="0" type="xs:float" />
              <xs:element name="ProviderSummary_TS308_TotalDeniedChargeAmount" minOccurs="0" type="xs:float" />
              <xs:element name="ProviderSummary_TS305_TotalClaimChargeAmount" minOccurs="0" type="xs:float" />
              <xs:element name="BTSInterchangeID" minOccurs="0" type="xs:string" />
              <xs:element name="IsDependent" minOccurs="0" type="xs:string" />
              <xs:element name="Patient_NM109_PatientIdentifier" minOccurs="0" type="xs:string" />
              <xs:element name="ClaimPayment_CLP02_ClaimStatusCode" minOccurs="0" type="xs:string" />
              <xs:element name="ClaimPayment_CLP03_TotalClaimChargeAmount" minOccurs="0" type="xs:float" />
              <xs:element name="ClaimPayment_CLP04_ClaimPaymentAmount" minOccurs="0" type="xs:float" />
              <xs:element name="ClaimPayment_CLP05_PatientResponsibilityAmount" minOccurs="0" type="xs:float" />
              <xs:element name="ClaimPayment_CLP06_ClaimFilingIDCode" minOccurs="0" type="xs:string" />
              <xs:element name="ClaimPayment_CLP07_PayerClaimControlNumber" minOccurs="0" type="xs:string" />
              <xs:element name="Payer_NM102_PayerName" minOccurs="0" type="xs:string" />
              <xs:element name="Payer_N401_AddressCity" minOccurs="0" type="xs:string" />
              <xs:element name="Payer_N402_AddressState" minOccurs="0" type="xs:string" />
              <xs:element name="Payer_Per02_ContactName" minOccurs="0" type="xs:string" />
              <xs:element name="Payer_Per04_CommunicationNumber" minOccurs="0" type="xs:string" />
              <xs:element name="ClaimPayment_CLP08_FacilityTypeCode" minOccurs="0" type="xs:string" />
              <xs:element name="ClaimPayment_CLP11_DRGCode" minOccurs="0" type="xs:string" />
              <xs:element name="ClaimPayment_CLP12_DRGWeight" minOccurs="0" type="xs:string" />
              <xs:element name="ClaimPayment_CLP13_DischargeFraction" minOccurs="0" type="xs:string" />
            </xs:sequence>
          </xs:complexType>
        </xs:element>
        <xs:element name="EB_270">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="InfoSource_NM101_SourceEntityIdentifierCode" minOccurs="0" type="xs:string" />
              <xs:element name="InfoSource_NM103_SourceLastOrOrganizationName" minOccurs="0" type="xs:string" />
              <xs:element name="InfoSource_NM109_SourcePrimaryIdentifier" minOccurs="0" type="xs:string" />
              <xs:element name="InfoReceiver_NM101_ReceiverEntityIdentifierCode" minOccurs="0" type="xs:string" />
              <xs:element name="InfoReceiver_NM102_ReceiverEntityTypeQualifier" minOccurs="0" type="xs:string" />
              <xs:element name="InfoReceiver_NM103_ReceiverLastOrOrganizationName" minOccurs="0" type="xs:string" />
              <xs:element name="InfoReceiver_NM109_ReceiverIDNumber" minOccurs="0" type="xs:string" />
              <xs:element name="InfoReceiver_REF01_ReceiverRefIDQualifier" minOccurs="0" type="xs:string" />
              <xs:element name="InfoReceiver_REF02_ReceiverAdditionalIdentifier" minOccurs="0" type="xs:string" />
              <xs:element name="InfoReceiver_REF03_LicenseNumberStateCode" minOccurs="0" type="xs:string" />
              <xs:element name="Subscriber_TRN02_TraceNumber" minOccurs="0" type="xs:string" />
              <xs:element name="Subscriber_TRN03_TraceAssigningEntityID" minOccurs="0" type="xs:string" />
              <xs:element name="Subscriber_TRN04_TraceAssigningEntityAdditionalID" minOccurs="0" type="xs:string" />
              <xs:element name="Subscriber_NM103_SubscriberDependentLastName" minOccurs="0" type="xs:string" />
              <xs:element name="Subscriber_NM104_SubscriberDependentFirstName" minOccurs="0" type="xs:string" />
              <xs:element name="Subscriber_NM109_SubscriberPrimaryIdentifier" minOccurs="0" type="xs:string" />
              <xs:element name="IsDependent" minOccurs="0" type="xs:string" />
              <xs:element name="SendRequest" minOccurs="0" type="xs:dateTime" />
              <xs:element name="Subscriber_PRV01_ProviderCode" minOccurs="0" type="xs:string" />
              <xs:element name="Subscriber_PRV03_ProviderIdentifier" minOccurs="0" type="xs:string" />
              <xs:element name="BHT03_SubmitterTransactionIdentifier" minOccurs="0" type="xs:string" />
              <xs:element name="CommunicationMethod" minOccurs="0" type="xs:string" />
              <xs:element name="RoutedTo" minOccurs="0" type="xs:string" />
              <xs:element name="BTSMessageID" minOccurs="0" type="xs:string" />
              <xs:element name="BTSInterchangeID" minOccurs="0" type="xs:string" />
              <xs:element name="EB_270_Details">
                <xs:complexType>
                  <xs:sequence>
                    <xs:element name="Subscriber_TRN03_TraceNumber" minOccurs="0" type="xs:string" />
                    <xs:element name="BenefitInquiry_EQ01_ServiceTypeCode" minOccurs="0" type="xs:string" />
                    <xs:element name="BenefitInquiry_EQ2_ProductOrServiceIDQualifier" minOccurs="0" type="xs:string" />
                    <xs:element name="BenefitInquiry_EQ2_ProcedureCode" minOccurs="0" type="xs:string" />
                    <xs:element name="BenefitInquiry_EQ2_ProcedureModifier1" minOccurs="0" type="xs:string" />
                    <xs:element name="BenefitInquiry_EQ2_ProcedureModifier2" minOccurs="0" type="xs:string" />
                    <xs:element name="BenefitInquiry_EQ2_ProcedureModifier3" minOccurs="0" type="xs:string" />
                    <xs:element name="BenefitInquiry_EQ2_ProcedureModifier4" minOccurs="0" type="xs:string" />
                    <xs:element name="BenefitInquiry_EQ3_BenefitCoverageLevelCode" minOccurs="0" type="xs:string" />
                    <xs:element name="BenefitInquiry_EQ4_InsuranceTypeCode" minOccurs="0" type="xs:string" />
                    <xs:element name="SubscriberSpend_AMT01_AmountQualifierCode" minOccurs="0" type="xs:string" />
                    <xs:element name="SubscriberSpend_AMT02_SpendDownAmount" minOccurs="0" type="xs:float" />
                    <xs:element name="BenefitInquiryAdd_III01_CodeListQualifierCode" minOccurs="0" type="xs:string" />
                    <xs:element name="BenefitInquiryAdd_III02_IndustryCode" minOccurs="0" type="xs:string" />
                    <xs:element name="SubscriberAddInfo_REF01_ReferenceIDQualifier" minOccurs="0" type="xs:string" />
                    <xs:element name="SubscriberAddInfo_REF02_PriorAuthorizationNumber" minOccurs="0" type="xs:string" />
                    <xs:element name="SubscriberEligibility_DTP01_DateTimeQualifier" minOccurs="0" type="xs:string" />
                    <xs:element name="SubscriberEligibility_DTP02_DateTimePeriod" minOccurs="0" type="xs:string" />
                    <xs:element name="Subscriber_NM109_SubscriberPrimaryID" minOccurs="0" type="xs:string" />
                    <xs:element name="IsDependent" minOccurs="0" type="xs:string" />
                  </xs:sequence>
                </xs:complexType>
              </xs:element>
            </xs:sequence>
          </xs:complexType>
        </xs:element>
        <xs:element name="EB_271">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="InfoSource_NM109_SourcePrimaryID" minOccurs="0" type="xs:string" />
              <xs:element name="InfoSource_REF03_PlanName" minOccurs="0" type="xs:string" />
              <xs:element name="Subscriber_TRN01_TraceTypeCode" minOccurs="0" type="xs:string" />
              <xs:element name="Subscriber_TRN02_TraceNumber" minOccurs="0" type="xs:string" />
              <xs:element name="Subscriber_TRN03_TraceAssigningEntityID" minOccurs="0" type="xs:string" />
              <xs:element name="Subscriber_TRN04_TraceAssigningEntityAdditionalID" minOccurs="0" type="xs:string" />
              <xs:element name="Subscriber_NM109_SubscriberPrimaryIdentifier" minOccurs="0" type="xs:string" />
              <xs:element name="IsDependent" minOccurs="0" type="xs:string" />
              <xs:element name="ReceiveResponse" minOccurs="0" type="xs:dateTime" />
              <xs:element name="Subscriber_REF02_SubscriberSupplementalID" minOccurs="0" type="xs:string" />
              <xs:element name="Subscriber_REF03_PlanSponsorName" minOccurs="0" type="xs:string" />
              <xs:element name="Subscriber_AAA01_ValidRequestIndicator" minOccurs="0" type="xs:string" />
              <xs:element name="Subscriber_AAA03_RejectReasonCode" minOccurs="0" type="xs:string" />
              <xs:element name="Subscriber_AAA04_FollowupActionCode" minOccurs="0" type="xs:string" />
              <xs:element name="BHT03_SubmitterTransactionIdentifier" minOccurs="0" type="xs:string" />
              <xs:element name="BTSMessageID" minOccurs="0" type="xs:string" />
              <xs:element name="BTSInterchangeID" minOccurs="0" type="xs:string" />
              <xs:element name="EB_271_Details">
                <xs:complexType>
                  <xs:sequence>
                    <xs:element name="Subscriber_TRN02_TraceNumber" minOccurs="0" type="xs:string" />
                    <xs:element name="BenefitInfo_EB01_EligibilityOrBenefitInformation" minOccurs="0" type="xs:string" />
                    <xs:element name="BenefitInfo_EB02_BenefitCoverageLevelCode" minOccurs="0" type="xs:string" />
                    <xs:element name="BenefitInfo_EB03_ServiceTypeCode" minOccurs="0" type="xs:string" />
                    <xs:element name="BenefitInfo_EB04_InsuranceTypeCode" minOccurs="0" type="xs:string" />
                    <xs:element name="BenefitInfo_EB05_PlanCoverageDescription" minOccurs="0" type="xs:string" />
                    <xs:element name="BenefitInfo_EB06_TimePeriodQualifier" minOccurs="0" type="xs:string" />
                    <xs:element name="BenefitInfo_EB08_BenefitPercent" minOccurs="0" type="xs:string" />
                    <xs:element name="BenefitInfo_EB07_BenefitAmount" minOccurs="0" type="xs:float" />
                    <xs:element name="BenefitInfo_EB09_QuantityQualifier" minOccurs="0" type="xs:string" />
                    <xs:element name="BenefitInfo_EB10_BenefitQuantity" minOccurs="0" type="xs:int" />
                    <xs:element name="BenefitInfo_EB11_AuthOrCertificationIndicator" minOccurs="0" type="xs:string" />
                    <xs:element name="BenefitInfo_EB12_InPlanNetworkIndicator" minOccurs="0" type="xs:string" />
                    <xs:element name="BenefitInfo_REF01_ReferenceIdentificationQualifier" minOccurs="0" type="xs:string" />
                    <xs:element name="BenefitInfo_REF02_SubscriberEligibilityOrBenefitID" minOccurs="0" type="xs:string" />
                    <xs:element name="BenefitInfo_REF03_PlanSponsorName" minOccurs="0" type="xs:string" />
                    <xs:element name="BenefitInfo_MSG01_FreeFormMessageText" minOccurs="0" type="xs:string" />
                    <xs:element name="BenefitInfo_EB13_ProcedureCode" minOccurs="0" type="xs:string" />
                    <xs:element name="BenefitInfo_EB13_ProductOrServiceIDQualifier" minOccurs="0" type="xs:string" />
                    <xs:element name="IsDependent" minOccurs="0" type="xs:string" />
                  </xs:sequence>
                </xs:complexType>
              </xs:element>
            </xs:sequence>
          </xs:complexType>
        </xs:element>
        <xs:element name="Availity_Realtime_Messaging">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="TranCode" minOccurs="0" type="xs:string" />
              <xs:element name="MessageFormat" minOccurs="0" type="xs:string" />
              <xs:element name="Sender" minOccurs="0" type="xs:string" />
              <xs:element name="Receiver" minOccurs="0" type="xs:string" />
              <xs:element name="Session" minOccurs="0" type="xs:string" />
              <xs:element name="ProviderOfficeNumber" minOccurs="0" type="xs:string" />
              <xs:element name="ProviderTransactionID" minOccurs="0" type="xs:string" />
              <xs:element name="BTSMessageID_HTTPRequest" minOccurs="0" type="xs:string" />
              <xs:element name="BTSInterchangeID" minOccurs="0" type="xs:string" />
              <xs:element name="UniqueIdentfier" minOccurs="0" type="xs:string" />
              <xs:element name="MessageRequestDate" minOccurs="0" type="xs:dateTime" />
              <xs:element name="MessageResponseDate" minOccurs="0" type="xs:dateTime" />
              <xs:element name="ResponseMessageFormat" minOccurs="0" type="xs:string" />
              <xs:element name="ResponseErrorCode" minOccurs="0" type="xs:string" />
              <xs:element name="ResponseErrorDescription" minOccurs="0" type="xs:string" />
              <xs:element name="ResponseTransactionType" minOccurs="0" type="xs:string" />
              <xs:element name="ResponseSessionID" minOccurs="0" type="xs:string" />
              <xs:element name="ResponseMessageType" minOccurs="0" type="xs:string" />
              <xs:element name="AXIMLSender" minOccurs="0" type="xs:string" />
              <xs:element name="AXIMLReceiver" minOccurs="0" type="xs:string" />
              <xs:element name="AXIMLTransDate" minOccurs="0" type="xs:string" />
              <xs:element name="AXIMLTransTime" minOccurs="0" type="xs:string" />
              <xs:element name="AXIMLTestProd" minOccurs="0" type="xs:string" />
              <xs:element name="AXIMLTransID" minOccurs="0" type="xs:string" />
              <xs:element name="AXIMLSenderTransID" minOccurs="0" type="xs:string" />
              <xs:element name="AXIMLMessageText" minOccurs="0" type="xs:string" />
              <xs:element name="AXIMLInfoReceiverOrgName" minOccurs="0" type="xs:string" />
              <xs:element name="AXIMLInfoReceiverSiteID" minOccurs="0" type="xs:string" />
              <xs:element name="AXIMLInfoReceiverAKAName" minOccurs="0" type="xs:string" />
              <xs:element name="AXIMLEDIVersionNumber" minOccurs="0" type="xs:string" />
              <xs:element name="AXIMLTransCode" minOccurs="0" type="xs:string" />
              <xs:element name="BTSMessageID_OriginalRequest" minOccurs="0" type="xs:string" />
            </xs:sequence>
          </xs:complexType>
        </xs:element>
        <xs:element name="Availity_Realtime_Messaging_PayerErrors">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="ErrorRow" minOccurs="0" type="xs:string" />
              <xs:element name="ErrorCode" minOccurs="0" type="xs:string" />
              <xs:element name="Followup" minOccurs="0" type="xs:string" />
              <xs:element name="HIPAAText" minOccurs="0" type="xs:string" />
              <xs:element name="BTSMessageID" minOccurs="0" type="xs:string" />
              <xs:element name="BTSInterchangeID" minOccurs="0" type="xs:string" />
            </xs:sequence>
          </xs:complexType>
        </xs:element>
      </xs:sequence>
    </xs:complexType>
  </xs:element>
</xs:schema>